# -*- coding: utf-8 -*-
from datetime import timedelta
from airflow.operators.bash import BashOperator
from jms.dwd.tab.dwd_tab_barscan_collect_base_dt import jms_dwd__dwd_tab_barscan_collect_base_dt
from jms.dwd.oms.dwd_oms_order_dt import  jms_dwd__dwd_oms_order_dt
from jms.dim.dim_sys_network_detail_dt import jms_dim__dim_sys_network_detail_dt


oss__dm_pdd_collect_cnt_dt = BashOperator(
    task_id='oss__dm_pdd_collect_cnt_dt',
    email=['wangmenglei@jtexpress.com','yl_bigdata@yl-scm.com'],
    pool='unlimited_pool',
    bash_command='jms/oss/dm_pdd_collect_cnt_dt/execute.sh',
    execution_timeout=timedelta(minutes=50),
    sla=timedelta(hours=7)
)

oss__dm_pdd_collect_cnt_dt << [
    jms_dwd__dwd_tab_barscan_collect_base_dt ,
    jms_dwd__dwd_oms_order_dt,
    jms_dim__dim_sys_network_detail_dt
]
